import * as types from "./mutations-type"

const mutations={
    [types.SET_SINGER](state,singer){
        state.singer=singer
    },
    [types.SET_RECOMMEND](state,recommend){
        state.recommend=recommend
    },
    [types.SET_PLAYLIST](state,playList){
        state.playList=playList
    },
    [types.SET_CURRENT_INDEX](state, index) {
        state.currentIndex = index
    },
    [types.SET_FULL_SCREEN](state,toggle){
        state.screen=toggle
    },
    [types.SET_PLAYING_STATE](state, flag) {
        state.playing = flag
    },
    [types.SET_SEQUENCE_LIST](state, list) {
        state.sequenceList = list
    },
    [types.SET_PLAY_MODE](state, mode) {
        state.mode = mode
    },
    [types.SET_DISC](state,disc){
        state.disc=disc;
    },
    [types.SET_TOPLIST](state,toplist){
        state.topList=toplist;
    }
}

export default mutations